package com.xvyy.tingshu.order.adapter.impl;

import com.xvyy.tingshu.common.constant.SystemConstant;
import com.xvyy.tingshu.order.adapter.PayWay;
import com.xvyy.tingshu.vo.order.OrderInfoVo;
import org.springframework.stereotype.Component;

/**
 * ClassName: AliPay
 * Package: com.xvyy.tingshu.order.adapter
 *
 * @Description: 支付宝支付适配器
 * @Author: xvyy
 * @Create: 2025/2/11 - 11:06
 * @Version: v1.0
 */
@Component
public class AliPayImpl implements PayWay {
    @Override
    public Boolean supportPayWay(String payWay) {
        return SystemConstant.ORDER_PAY_WAY_ALIPAY.equals(payWay);//1102支付宝支付方式
    }

    @Override
    public void payWay(OrderInfoVo orderInfoVo, String orderNo, Long userId) {
        // TODO 支付宝支付逻辑
    }
}
